package com.yxuan.springboot.service;

import com.github.pagehelper.PageInfo;
import com.yxuan.springboot.model.Information;
import java.util.List;

/**
 * 
 * @author zchao
 *    Information业务层接口
 * @date 2023-05-14 20:40:39
 */
public interface InformationService extends BaseService<Information>{

    /**
      * @className: InformationService.java
      * @methodName: queryInformationId
      * @effect: 返回表中所有数据的主键Id
      * @author: JingxuanFan
      * @date: 2023/5/18 20:11
      **/

    List<String> queryInformationId() throws Exception;

    /**
      * @className: InformationService.java
      * @methodName: queryoperationNum
      * @effect: 查询文章操作的数据条数（点赞数，收藏数，分享数，阅读数）
      * @author: JingxuanFan
      * @date: 2023/5/18 21:08
      **/
    String queryoperationNum(String information,String operation) throws Exception;

    /**
     * @className: InformationService.java
     * @methodName: pagingQueryInformation
     * @effect: 文章资讯分页查询
     * @author: JingxuanFan
     * @date: 2023/5/28 16:48
     * @param page 起始页码
     * @param limit 每页记录条数
    **/
    PageInfo<Information> pagingQueryInformation(Integer page, Integer limit) throws Exception;
}
